const Route = require('koa-router')
const router = new Route()
const user = require('./user.js')  // 登录
const specialty = require('./specialty.js')  // 专业
const content = require('./imgText.js')  // 图文
const course = require('./course.js')  // 课程
const classes = require('./class.js')  // 班级
const student = require('./student.js')  // 学生
const parent = require('./parent.js')
const teacher = require('./teacher.js')
const achievement = require('./achievement.js')
const rewards = require('./rewards.js')
const performance = require('./performance.js')
const studentAttendance = require('./studentAttendance.js')
const teacherEvaluate = require('./teacherEvaluate.js')
const home = require('./home.js')

router.use('/user',user.routes())
router.use('/speciality',specialty.routes())
router.use('/content',content.routes())
router.use('/course',course.routes())
router.use('/class',classes.routes())
router.use('/student',student.routes())
router.use('/parent',parent.routes())
router.use('/teacher',teacher.routes())
router.use('/achievement',achievement.routes())
router.use('/rewards',rewards.routes())
router.use('/performance',performance.routes())
router.use('/attendance',studentAttendance.routes())
router.use('/evaluate',teacherEvaluate.routes())
router.use('/home',home.routes())

module.exports = router